package com.xu.cloud.common.pojo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xu.cloud.common.pojo.domain.SequenceGeneratorDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author xuguan
 * @since 2023/12/25
 */
@Mapper
public interface SequenceGeneratorMapper extends BaseMapper<SequenceGeneratorDO> {

    @Update("truncate table sequence_generator")
    void truncate();

    @Update("select LAST_INSERT_ID()")
    long lastInsertId();
}
